package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.PagadorDAO;
import com.escool.model.TbResponsable;

@Service
public class PagadorServiceImpl implements PagadorService {
	
	@Autowired
	PagadorDAO pagadorDAO;
	

	@Transactional
	public void addPagador(TbResponsable tbResponsable) {
		// TODO Auto-generated method stub
		pagadorDAO.addPagador(tbResponsable);
	}


	@Transactional
	public List<TbResponsable> listTbResponsable() {
		// TODO Auto-generated method stub
		return pagadorDAO.listTbResponsable();
	}


	@Transactional
	public TbResponsable findById(Integer id) {
		
		return pagadorDAO.findById(id);
	}


	@Transactional
	public void edit(TbResponsable tbResponsable) {
		pagadorDAO.edit(tbResponsable);
		
	}


	@Transactional
	public void delete(Integer id) {
		pagadorDAO.delete(id);
		
	}
	
}
